import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { PersonSharedModule } from '../../shared';
import { PersonAdminModule } from '../../admin/admin.module';
import {
    ShopPersonService,
    ShopPersonPopupService,
    ShopPersonComponent,
    ShopPersonDetailComponent,
    ShopPersonDialogComponent,
    ShopPersonPopupComponent,
    ShopPersonDeletePopupComponent,
    ShopPersonDeleteDialogComponent,
    shopRoute,
    shopPopupRoute,
    ShopPersonResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...shopRoute,
    ...shopPopupRoute,
];

@NgModule({
    imports: [
        PersonSharedModule,
        PersonAdminModule,
        RouterModule.forRoot(ENTITY_STATES, { useHash: true })
    ],
    declarations: [
        ShopPersonComponent,
        ShopPersonDetailComponent,
        ShopPersonDialogComponent,
        ShopPersonDeleteDialogComponent,
        ShopPersonPopupComponent,
        ShopPersonDeletePopupComponent,
    ],
    entryComponents: [
        ShopPersonComponent,
        ShopPersonDialogComponent,
        ShopPersonPopupComponent,
        ShopPersonDeleteDialogComponent,
        ShopPersonDeletePopupComponent,
    ],
    providers: [
        ShopPersonService,
        ShopPersonPopupService,
        ShopPersonResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class PersonShopPersonModule {}
